﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserProfile.aspx.cs" Inherits="ExpertMIS.Workships.UserProfile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>我的信息</title>
    <link type="text/css" rel="Stylesheet" href="../CSS/workship.css" />
</head>
<body style="text-align: left">
    <form id="form1" runat="server">
    <div style="height: 25px; background-color: #176b9d; padding-left: 20px; line-height: 25px;
        vertical-align: middle;">
        <asp:Label runat="server" ID="Label1" Font-Bold="True" Font-Names="宋体" Font-Size="12pt"
            Font-Strikeout="False" Font-Underline="False" ForeColor="White">我的信息</asp:Label>
    </div>
    <div class="column">
        <div class="column-title">
            <span>个人消息</span>
        </div>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ValidationGroup="info" />
        <div style="padding-left: 8px;">
            <table>
                <tr>
                    <td rowspan="5">
                        <asp:Image ID="imgGraphic" runat="server" BorderWidth="0" ImageAlign="AbsMiddle"
                            Width="128px" Height="128px" ImageUrl="~/Service/GetPhoto.aspx" />
                    </td>
                    <td>
                        姓名
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txName"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txName"
                            Display="Dynamic" ErrorMessage="请填写您的姓名" SetFocusOnError="True" ValidationGroup="info"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        联系电话
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txPhone"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txPhone"
                            Display="Dynamic" ErrorMessage="请填写你的联系电话" SetFocusOnError="True" ValidationGroup="info"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        电子邮箱
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txEMail"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txEMail"
                            Display="Dynamic" ErrorMessage="请填写电子邮箱" SetFocusOnError="True" ValidationGroup="info"></asp:RequiredFieldValidator><asp:RegularExpressionValidator
                                ID="RegularExpressionValidator1" runat="server" ControlToValidate="txEMail" Display="Dynamic"
                                ErrorMessage="邮件地址有误" SetFocusOnError="True" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                ValidationGroup="info"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        照片</td>
                    <td colspan="2">
                        <asp:FileUpload ID="fuGraphic" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                </tr>
                </table>
        </div>
        <div style="text-align: center; height: 35px; line-height: 35px; vertical-align: bottom;">
            <asp:Button runat="server" ID="btnSave" Width="80px" Text="更改信息" ValidationGroup="info"
                OnClick="btnSave_Click" />
            &nbsp;<asp:Button runat="server" ID="btnRetrieve" Width="80px" Text="恢复" CausesValidation="False" />
        </div>
    </div>
    <div class="column">
        <div class="column-title">
            <span>修改口令</span>
        </div>
        <asp:ValidationSummary ID="ValidationSummary2" runat="server" ValidationGroup="passwd" />
        <div style="padding-left: 8px;">
            <table>
                <tr>
                    <td>
                        新口令
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txPassWD" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txPassWD2"
                            ControlToValidate="txPassWD" Display="Dynamic" ErrorMessage="口令不一致" ValidationGroup="info"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        确认新口令
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txPassWD2" TextMode="Password"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
        <div style="text-align: center; height: 35px; line-height: 35px; vertical-align: bottom;">
            <asp:Button runat="server" ID="btnChangePassword" Width="80px" Text="更改口令" ValidationGroup="info"
                OnClick="btnChangePassword_Click" />
        </div>
    </div>
    </form>
</body>
</html>
